/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pkl53.model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author HP G42 (RILLA)
 */
@Embeddable
public class B4KeteranganumumtenagakerjaPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "KKSArtNup")
    private String kKSArtNup;
    @Basic(optional = false)
    @Column(name = "KKSArt")
    private String kKSArt;

    public B4KeteranganumumtenagakerjaPK() {
    }

    public B4KeteranganumumtenagakerjaPK(String kKSArtNup, String kKSArt) {
        this.kKSArtNup = kKSArtNup;
        this.kKSArt = kKSArt;
    }

    public String getKKSArtNup() {
        return kKSArtNup;
    }

    public void setKKSArtNup(String kKSArtNup) {
        this.kKSArtNup = kKSArtNup;
    }

    public String getKKSArt() {
        return kKSArt;
    }

    public void setKKSArt(String kKSArt) {
        this.kKSArt = kKSArt;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (kKSArtNup != null ? kKSArtNup.hashCode() : 0);
        hash += (kKSArt != null ? kKSArt.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof B4KeteranganumumtenagakerjaPK)) {
            return false;
        }
        B4KeteranganumumtenagakerjaPK other = (B4KeteranganumumtenagakerjaPK) object;
        if ((this.kKSArtNup == null && other.kKSArtNup != null) || (this.kKSArtNup != null && !this.kKSArtNup.equals(other.kKSArtNup))) {
            return false;
        }
        if ((this.kKSArt == null && other.kKSArt != null) || (this.kKSArt != null && !this.kKSArt.equals(other.kKSArt))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "pkl53.model.B4KeteranganumumtenagakerjaPK[ kKSArtNup=" + kKSArtNup + ", kKSArt=" + kKSArt + " ]";
    }
    
}
